/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.ClientPhone;
import br.com.jr2tecnologia.model.entity.Company;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface ClientPhonePersistenceLocal {

    @PostConstruct
    void initialize();

    ClientPhone findByPhone(String phone);
    
    ClientPhone findByPhone(Company company, String phone);

    List<ClientPhone> list(ClientPhone clientPhone);

    List<ClientPhone> listAll();

    void persist(ClientPhone clientPhone);

    void remove(ClientPhone clientPhone);

    void update(ClientPhone clientPhone);

}
